Skip to main content
Version: Upcoming

AtsDegrossRevConResult

V8 Message Definiton

Published by the dedicated degrossing execution engine at three lifecycle stages:

  1. Received - on order arrival, confirms receipt, auction fields blank/zero
  2. Provisional - each minute, trial match results showing what would happen now
  3. Final - after auction completes and exchange confirms fills See DEGROSSING_PLAN_2.1.md section 5.3 and 11.1 for specification.

METADATA

AttributeValue
Topic2270-execution-engine
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'underlier ticker
ticker_tsenum - TickerSrcPRI'None'underlier ticker
ticker_tkVARCHAR(12)PRI''underlier ticker
expiryDATEPRI'1900-01-01'flex option expiry date
accntVARCHAR(16)PRI''SR trading account
sideenum - BuySellPRI'None'Buy reversal lend Sell conversion borrow
clientFirmVARCHAR(16)PRI''
auctionDttmDATETIME(6)PRI'1900-01-01 00:00:00.000000'auction cycle timestamp identifies which specific auction multiple per day
resultStatusenum - AtsDegrossResultStatus'None'
parentNumberBIGINT0parent order reference
submittedSizeINT0original order size
useSRRateenum - YesNo'None'echo did client use SR rate
useSRSDivenum - YesNo'None'echo did client use SR sdiv
useSRDDivenum - YesNo'None'echo did client use SR ddiv schedule
effectiveRateDOUBLE0rate actually used SR or clientsupplied
effectiveSDivDOUBLE0sdiv actually used SR or clientsupplied
refUPrcDOUBLE0reference underlier price used
strikeDOUBLE0SRchosen strike
iDaysINT0interest days to expiry
limitPriceDOUBLE0computed limit price for this order
clearingPriceDOUBLE0single clearing price for this ticker expiry
srClearingSDivDOUBLE0clearing SDIV using SR rate SR ddiv
clientClearingSDivDOUBLE0clearing SDIV using client rate client ddiv
matchSizeINT0matched size provisional or confirmed
matchStatusenum - AtsRevConFillStatus'None'
withdrawReasonTINYTEXT''reserved reason an order was withdrawn unused in 21
fillSizeINT0exchangeconfirmed fill size
numCrossesINT0number of bilateral crosses this order participated in
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
eventNumINT0which event produced this row 0 provisional heartbeat 60s 12 trial 3 binding final

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
expiry4
accnt5
side6
clientFirm7
auctionDttm8

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRTrade`.`MsgAtsDegrossRevConResult` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') NOT NULL DEFAULT 'None' COMMENT 'underlier ticker',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') NOT NULL DEFAULT 'None' COMMENT 'underlier ticker',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'underlier ticker',
`expiry` DATE NOT NULL DEFAULT '1900-01-01' COMMENT 'flex option expiry date',
`accnt` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'SR trading account',
`side` ENUM('None','Buy','Sell') NOT NULL DEFAULT 'None' COMMENT 'Buy = reversal (lend); Sell = conversion (borrow)',
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '',
`auctionDttm` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'auction cycle timestamp (identifies which specific auction; multiple per day)',
`resultStatus` ENUM('None','Received','Provisional','Final') NOT NULL DEFAULT 'None',
`parentNumber` BIGINT NOT NULL DEFAULT 0 COMMENT 'parent order reference',
`submittedSize` INT NOT NULL DEFAULT 0 COMMENT 'original order size',
`useSRRate` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'echo: did client use SR rate?',
`useSRSDiv` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'echo: did client use SR sdiv?',
`useSRDDiv` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'echo: did client use SR ddiv schedule?',
`effectiveRate` DOUBLE NOT NULL DEFAULT 0 COMMENT 'rate actually used (SR or client-supplied)',
`effectiveSDiv` DOUBLE NOT NULL DEFAULT 0 COMMENT 'sdiv actually used (SR or client-supplied)',
`refUPrc` DOUBLE NOT NULL DEFAULT 0 COMMENT 'reference underlier price used',
`strike` DOUBLE NOT NULL DEFAULT 0 COMMENT 'SR-chosen strike',
`iDays` INT NOT NULL DEFAULT 0 COMMENT 'interest days to expiry',
`limitPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'computed limit price for this order',
`clearingPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'single clearing price for this (ticker, expiry)',
`srClearingSDiv` DOUBLE NOT NULL DEFAULT 0 COMMENT 'clearing SDIV using SR rate + SR ddiv',
`clientClearingSDiv` DOUBLE NOT NULL DEFAULT 0 COMMENT 'clearing SDIV using client rate + client ddiv',
`matchSize` INT NOT NULL DEFAULT 0 COMMENT 'matched size (provisional or confirmed)',
`matchStatus` ENUM('None','Confirmed','PartialFill','Withdrawn','PriceMiss','NoMatch','ExchangeRejected') NOT NULL DEFAULT 'None',
`withdrawReason` TINYTEXT NOT NULL DEFAULT '' COMMENT 'reserved; reason an order was withdrawn (unused in 2.1)',
`fillSize` INT NOT NULL DEFAULT 0 COMMENT 'exchange-confirmed fill size',
`numCrosses` INT NOT NULL DEFAULT 0 COMMENT 'number of bilateral crosses this order participated in',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`eventNum` INT NOT NULL DEFAULT 0 COMMENT 'which event produced this row: 0 = provisional heartbeat (~60s), 1/2 = trial #, 3 = binding final',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`,`expiry`,`accnt`,`side`,`clientFirm`,`auctionDttm`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Published by the dedicated degrossing execution engine at three lifecycle stages:\n1. Received - on order arrival, confirms receipt, auction fields blank/zero\n2. Provisional - each minute, trial match results showing what would happen now\n3. Final - after auction completes and exchange confirms fills\nSee DEGROSSING_PLAN_2.1.md section 5.3 and 11.1 for specification.';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`expiry`,
`accnt`,
`side`,
`clientFirm`,
`auctionDttm`,
`resultStatus`,
`parentNumber`,
`submittedSize`,
`useSRRate`,
`useSRSDiv`,
`useSRDDiv`,
`effectiveRate`,
`effectiveSDiv`,
`refUPrc`,
`strike`,
`iDays`,
`limitPrice`,
`clearingPrice`,
`srClearingSDiv`,
`clientClearingSDiv`,
`matchSize`,
`matchStatus`,
`withdrawReason`,
`fillSize`,
`numCrosses`,
`timestamp`,
`eventNum`
FROM `SRTrade`.`MsgAtsDegrossRevConResult`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a DATE */
`expiry` = '2022-01-01'
AND
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','Buy','Sell') */
`side` = 'None'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm'
AND
/* Replace with a DATETIME(6) */
`auctionDttm` = '2022-01-01 12:34:56.000000';

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='AtsDegrossRevConResult' ORDER BY ordinal_position ASC;